import { request } from '../request.js'
const list = {
	initData (params) {
	  return request({
	    method: 'Get',
	    url: '/api/order/front/order/query/'+params.frontOrderStatus,
	    params: params
	  })
	},
	afterData (params) {
	  return request({
	    method: 'Get',
	    url: '/api/order/front/afterSale/getAfterSaleList',
	    params: params
	  })
	},
	chgContactOrder(params) {
	  return request({
	    method: 'Post',
	    url: '/api/order/front/order/chgContactOrder',
	    params: params
	  })
	},
	// 退换货原因
	getDictByCode (params) {
	  return request({
	    method: 'Get',
	    url: '/api/cms/front/dict/getDictByCode',
	    params: params
	  })
	},
	// 申请退换货
	save (params) {
	  return request({
	    method: 'Post',
	    url: '/api/order/front/afterSale/save',
	    params: params
	  })
	},
	// 确认收货
	confirm (params) {
	  return request({
	    method: 'Get',
	    url: '/api/order/front/order/confirmOrder/'+params
	  })
	},
	// 是否上传买家秀
	 checkBuyerShow() {
	  return request({
	    method: 'Get',
	    url: '/api/cms/cfg/common/checkBuyerShow',   
	  })
	},
	// // 退款详情
	// refundDetails (params) {
	//   return request({
	//     method: 'Post',
	//     url: '/api/order/front/afterSale/refundDetails/'+params,   
	//   })
	// },
	// 删除
	del (params) {
	  return request({
	    method: 'Post',
	    url: '/api/order/front/order/del/'+params
	  })
	},
	}
export default list